import { post } from "@/utils";

/** 排名 v1.1.0 POST /staff/h5/statistic/rank */
export const fetchStatistic = (params: {
  type: string; //today、this_month、last_month、total
  range: string; //self渠道排名    department组内排名(leader可传)
}) =>
  post<{
    data: Array<{
      rank: number;
      staff_info: string;
      department: string;
      count: string;
    }>;
  }>("/staff/h5/statistic/rank", params);
